whenRange = ["at the beginning of the frame", "at the end of the frame"]
else
whenDefault = "when the mouse clicks on the sprite"
whenRange = ["when the sprite first appears", "when the sprite leaves the stage", "when the mouse clicks on the sprite", "when the mouse button is released over the sprite", "when the cursor moves over the sprite", "when the cursor moves off of the sprite"]
return "Pauses a sound based on a frame or sprite event."
end
on getBehaviorDescription me
return "PAUSE SOUND" & RETURN & RETURN & "Drop this behavior onto a sprite, the Stage, or the Script channel of the Score to pause a sound based on the movement of the playback head or cursor." & RETURN & RETURN & "When used in the Script channel, this behavior can pause the sound when the playback head enters or leaves the frame. " & "With sprites, the behavior can react to the beginning or end of the sprite, or to mouse events. " & "Choose a sound channel and an event to pause the sound." & RETURN & RETURN & "PARAMETERS:" & RETURN & "* Sound channel - which channel to pause" & RETURN & "* When to pause sound - event to trigger pause"